<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子模型</title>
    <style>
        .border {
            width: 200px;
            height: 200px;
            /* border-width: 5px;
            border-style: dotted;
            border-color: pink; */
            border: 5px solid blue;
            border-top: 5px solid red;
            /* padding: 10px; */
        }
        table {
            /* width: 500px; */
            height: 250px;
        }
        table,
        td {
            border: 1px solid red;
            border-collapse: collapse;
        }
        td {
            width: 100px;
            padding-left: 20px;
        }
        div {
            height: 50px;
            width: 50px;
            background-color: darkgrey;
            display: inline-block;
            /* margin: 0 auto; */
            text-align: center;
            margin: 20px;
        }
    </style>
</head>
<body>
    <div class="border">123</div>
    <table cellspacing="0">
        <tr>
            <td>11</td>
            <td>11</td>
            <td>11</td>
        </tr>
        <tr>
            <td>222</td>
            <td>222</td>
            <td>222</td>
        </tr>
        <tr>
            <td>444</td>
            <td>444</td>
            <td>444</td>
        </tr>
    </table>
    <div>222</div>
    <div>222</div>
    <div>1</div>
    <div>123</div>
</body>
</html>